NetCacheResolver 0.9d5 - an AppleScriptable helper program
Copyright (C)1995 Mizutori Tetsuya
This is a freeware program.
-- October 26, 1995
NetCacheResolver is a helper program to the AppleScript application NetCacheBack that can resolve the cache files of Netscape Navigator 1.1N or 2.0beta. Among these two versions, there comes about some changes in the record format of the cache log databases. NetCacheResolver converts the 2.0beta’s CCache log datatabe to 1.1N’s Cache log one. It is also AppleScriptable, such as responding and directly sending back the resolved records to NetCacheBack.
NetCacheResolver is an AppleScript document, so it requires System 7.5 or later. Or, you need the relative scriptable Finder and other Scripting Additions.
*** IMPORTANT ***
For the Netscape Navigator 2.0beta users, please notice that my reverse-engineering on cache log database is not a perfect work. Maybe or not, I wonder the format of database will be changed in the future versions of beta or final release of 2.0. Even if so, I am catching up with the new frontier as possible. Please keep up on the future release of the helper program NetCacheResolver for a new cache log database.
• Changes since 0.9d4, October 22, 1995
Some rare case happens that cache file records are to be encountered with an exceptional field named “content-type”. Have you ever in the Web world met them? NetCacheResolver fails to resolve it properly. Fixed it.
• Changes since 0.9d3, October 15, 1995
NetCacheResolver returns the cache log records in the right order, sorted by Name, Date, Size, and others. Due to the sorting method, NetCacheBack can easily and rapidly search the database for the queried record. Typically it runs over 2 to 20 times faster than the previous version. Or, operating time on each query is kept constant, independently of the database size.
• Usage
There are three ways to handle this program to get Cache log record.
• ONE: Open the "CCache log" file from the “Open...” menu command
After this operation on CCache log file, you will get a new Cache log file of 1.1N format in the same folder.
• TWO: Drag and drop the "CCache log" file onto NetCacheResolver icon
Selecting the CCache log file to drop it to the NetCacheResolver icon, then you will get a new Cache log file of 1.1N’s one.
• THREE: Send “open” or “resolve” command to NetCacheResolver
Following this command, the client application, say NetCacheBack, gets the Cache log file in the Cache folder (for “open” command) or receiving the Cache log data records as a reply message (for “resolve” command). Let me show an example.
tell application "Finder"
set the cachelog to (choose file of type {"DBMC"})
tell application "NetCacheResolver"
--open {cachelog}
set cacheRecordList to resolve {cachelog}
quit
end tell
end tell
• AppleScript Commands of NetCacheResolver
Required Suite:
open alias -- Resolve the CCache log and create Cache log
print alias -- (do nothing)
run -- Sent to an application when it is double-clicked
quit -- Quit application
Net Cache Resolver:
resolve alias -- Resolve the CCache log file(s)
[with sorted by name/date/size/type/url]
Result: list -- list of resolved records
sort list -- the list of items to sort, Cache log Record
[at integer] -- field number, beginning with 1
[by name/date/size/type/url] -- by sorting method
[in regular/reverse] -- order form
[as alphabet/number] -- evaluating type
[with string] -- field separator, eg. space or tab
-- no operation, definitions only; for the constants of view selected for the window
show about -- Show about this application
• Files included are ...
1. NetCacheResolver -- an AppleScriptable helper application
2. NetCacheResolver source -- source code written in CodeWarrior DR/6.1
3. NetCacheResolver readme -- just this file you are reading
This is a freeware program. You can distribute it without any limitations.
• About the NetCacheBack...
NetCacheBack resolves the cache files of Netscape Navigator 1.1N or 2.0beta. Just drag and drop cache files like "cache123000-2" (or "cache123000.html") in the Cache folder onto NetCacheBack icon. That’s all what to do. Then they are renamed to proper names like "index.html" and moved to the destination folder. If the folders do not exist, any new folder required is created automatically. Let me show the followings;
If you are using the Netscape Navigator 2.0beta, NetCacheBack tries to get Cache log data from the CCache log file of 2.0beta with the help of NetCacheResolver.
For more information and its source code, please find this companion program at the “info-mac” archive sites where I posted it separately.